﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.Images
{
    public partial class Water : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string type = "B";
            switch (type)
            {
                case "A": A(); break;
                case "B": B(); break;
                default: break;
            }
        }
        //ImageWatermark
        private void A()
        {
            MSL.Utility.Images.Water water = new MSL.Utility.Images.Water();
            water.ImageWatermark("D:/win7我的文档-桌面-收藏夹/Desktop/12/8.jpg",
                "D:/win7我的文档-桌面-收藏夹/Desktop/12/2.png", "D:/win7我的文档-桌面-收藏夹/Desktop/12/_2.png", MSL.Utility.Images.Water.ImagePosition.RigthBottom);
        }
        //LetterWatermark
        private void B()
        {
            MSL.Utility.Images.Water water = new MSL.Utility.Images.Water();
            water.LetterWatermark("D:/win7我的文档-桌面-收藏夹/Desktop/12/8.jpg",
                "D:/win7我的文档-桌面-收藏夹/Desktop/12/_22.png", 15, "我喜欢你呀！", System.Drawing.Color.FromArgb(255, 234, 32), MSL.Utility.Images.Water.ImagePosition.RigthBottom);
        }
    }
}